let nodeList = $('.CollegeGuide .head_collt1000');
nodeList.each(function () {
    $(this).on('click', function (e) {
        let index = 0;
        let otherNextNodes = $('#CollegeGuide .list-inner ul');
        otherNextNodes.each(function () {
            $(this).slideUp(200, function () {
                index++;
            })
        });
        if (index == otherNextNodes.length) {
            let nextNode = $(e.target).parent().next('ul');
            nextNode.slideDown(200);
        }
    })
});

let nodeLanguage = $('#Language ul li .clickA');
nodeLanguage.each(function () {
    $(this).on('click', function (e) {
        let index = 0;
        nodeLanguage.each(function () {
            $(this).parent().removeClass('active');
            index++;
        })
        if (index == nodeLanguage.length) {
            $(e.target).parent().addClass('active');
        }
    })
});

$('#survey_carousel').on('slide.bs.carousel', function (e) {
    let toIndex=e.to;
    let node=$('#survey_test');
    if(toIndex==0){
        node.text('内容内容内容内容内容内容内容内容内容内容内容内容内容1');
    }else if(toIndex==1){
        node.text('内容内容内容内容内容内容内容内容内容内容内容内容内容2');
    }else if(toIndex==2){
        node.text('内容内容内容内容内容内容内容内容内容内容内容内容内容3');
    }
})

function toogleCollegeGuide() {
    topToggle('Language');
    let node = $('#CollegeGuide');
    node.slideToggle(200);

}

function toogleLanguage() {
    topToggle('CollegeGuide');
    let node = $('#Language');
    node.slideToggle(200);
}

function topToggle(nodeStr) {
    let nodes = $('#' + nodeStr);
    nodes.slideUp(200);
}